#define _CRT_SECURE_NO_WARNINGS
#include"string.h"

void test()
{
	shen::string s1("hello world");
	cout << s1.c_str() << endl;

	s1[0] = 'x';
	cout << s1.c_str() << endl;

	for (size_t i = 0; i < s1.size(); i++)
	{
		cout << s1[i] << " ";
	}

	shen::string::iterator it1 = s1.begin():
	while (it1 != s1.end())
	{
		(*it1)--;
		it++;
	}
	cout << endl;

	it1 = s1.begin();
	while (it1 != s1.end())
	{
		cout << *it1 << " ";
		it1++;
	}

	cout << endl;

	for (auto& ch : s1)
	{
		ch++;
	}

	for (auto ch : s1)
	{
		cout << ch << " ";
	}
	cout << endl;

}

int main()
{
	test();
	return 0;
}